package client.control;

import utilities.ChatMessage;
import utilities.TransportDriver;
import utilities.TransportReceiver;

/**
 * Manage the various chat rooms
 * @author M
 *
 */
public class ChatRoomController implements TransportReceiver{
	private TransportDriver td;
	private String userName;
	private final String chatControlCluster = "ControlCluster";
	
	/**
	 * Init a connexion
	 * @param userName
	 * @throws Exception
	 */
	public ChatRoomController(String userName) throws Exception {
		super();
		this.userName = userName;
		td = new TransportDriver(this.userName, chatControlCluster, this);
	}

	@Override
	public void receiveChatMessage(ChatMessage chatMsg) {
		// TODO Auto-generated method stub
		
	}
	
}
